'''
处理兄弟标签
'''
from urllib.request import urlopen
from bs4 import BeautifulSoup

html = urlopen("https://www.douban.com/gallery/")
bsObj = BeautifulSoup(html, "html.parser")

nextList = bsObj.find("div", {"class": "nav-items"}).ul.li.next_siblings
for x in nextList:
    print(x)